import os

# MySQL
HOSTNAME = 'tensql.ledemon.cn'
DATABASE = 'blog_wp'
PORT = 10086
USERNAME = 'root'
PASSWORD = 'Aa5910162'

DB_URL = 'mysql+mysqlconnector://{}:{}@{}:{}/{}?charset=utf8'.format(USERNAME, PASSWORD, HOSTNAME, PORT, DATABASE)

SQLALCHEMY_DATABASE_URI = DB_URL
SQLALCHEMY_TRACK_MODIFICATIONS = False

# Mail
MAIL_SERVER = 'smtp.yeah.net'
MAIL_USERNAME = 'theledemon@yeah.net'
MAIL_PASSWORD = 'BMMIVPUCXSRYWECE'

# redis
REDIS_URL = "redis://:Aa5910162@rainingway.com:6379/0"

SECRET_KEY = os.urandom(15)
